<div class="row">
  <div class="col-sm-4">
    <div id="logo">
      <a href="index.php-route=common-home.htm">@if(!empty($cfg->logo))<img src="{{Storage::url($cfg->logo)}}" title="MyShop" alt="MyShop" class="img-responsive" height="60" width="150" />@endif </a>
    </div>
  </div>
  <div class="col-sm-4">
    <div id="search" class="input-group">
      <input type="text" name="search" value="" placeholder="Search" class="form-control input-lg" />
      <span class="input-group-btn">
      <button type="button" class="btn btn-default btn-lg"><i class="fa fa-search"></i></button>
      </span>
    </div>
  </div>
  <div class="col-sm-4 header_right hidden-xs">
    @auth
    <a href="{{route('collections.index')}}" id="wishlist-total" title="收藏"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md hidden-lg">收藏({{ Auth::user()->collections()->count() }})</span></a>
    @endauth

    <div id="cart" class="btn-group btn-block">
      <button type="button" data-toggle="dropdown" data-loading-text="加載中......" class="btn btn-inverse btn-block btn-lg dropdown-toggle"><i class="fa fa-shopping-cart"></i> <span id="cart-total" class="hidden-xs">0 item(s) - $0.00</span></button>
      <ul class="dropdown-menu pull-right">
        <li>
          @if(!empty($carts))            
                <ul class="dropdown-menu pull-right" style="border: 1px solid yellow">
                  <li>
                    <table class="table table-striped">
                    <tbody>
                      @foreach($carts as $v)
                        <tr>
                        <td class="text-center">
                          <a href="http://shop14.jccms.cn/index.php?route=product/product&amp;product_id=33">

                            <img src="{{Storage::url($v->goods->cover_img??'')}}" alt="{{$v->goods->name??''}}" title="{{$v->goods->name??''}}" class="img-thumbnail"></a>

                          </td>
                        <td class="text-left"><a href="http://shop14.jccms.cn/index.php?route=product/product&amp;product_id=33">{{$v->goods->name??''}}</a>
                                      </td>
                        <td class="text-right">x {{$v->quantity??''}}</td>
                        <td class="text-right">{{$v->goods->price??''}}</td>
                        <td class="text-center"><button type="button" onclick="cart.remove('31');" title="移除" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
                        </tr>
                      @endforeach
                    </tbody>
                    </table>
                  </li>


                  <li>
                  <div>
                    <table class="table table-bordered">
                      <tbody>
                        <tr>
                          <td class="text-right"><strong>小計</strong></td>
                          <td class="text-right">$1.00</td>
                        </tr>
                        <tr>
                        <td class="text-right"><strong>總計</strong></td>
                        <td class="text-right">$1.00</td>
                        </tr>
                      </tbody>
                    </table>
                    <p class="text-right"><a href="http://shop14.jccms.cn/index.php?route=checkout/cart"><strong><i class="fa fa-shopping-cart"></i> 查看購物車</strong></a>&nbsp;&nbsp;&nbsp;<a href="http://shop14.jccms.cn/index.php?route=checkout/checkout"><strong><i class="fa fa-share"></i> 結算</strong></a></p>
                  </div>
                </li>
              </ul>
          @else
          <p class="text-center">您的購物車沒有添加商品！</p>
          @endif
        </li>
      </ul>
    </div>
  </div>
</div>